# 使用官方Ubuntu基础镜像  
FROM registry.cn-hangzhou.aliyuncs.com/czh9527/ros2-x86

# 设置时区
ENV TZ=Asia/shanghai
RUN ln -snf /usr/share/zoneinfo/$Tz /etc/localtime && \
    echo $Tz> /etc/timezone
    

# # 更新软件包列表  
# RUN apt install -y \
# # 安装软件包 
#     # 安装工具
#     build-essential \
#     cmake \
#     # 程序第三方依赖
#     libeigen3-dev \
#     libfcl-dev \
#     libjsonrpccpp-dev \
#     libyaml-cpp-dev \
#     libgoogle-glog-dev \
#     libgflags-dev \
#     libgtest-dev \
#     && \  
#     # 清理apt缓存，减小镜像大小  
#     rm -rf /var/lib/apt/lists/*  

# # 创建软链接
# RUN ln -s /usr/include/eigen3/Eigen /usr/include/Eige

# 创建一个新的用户组  
# RUN groupadd -r ubt
# RUN useradd -m -u ubt -g ubt -s /bin/bash ubt
# RUN echo 'ubt:123' | chpasswd  
# RUN echo 'root:123' | chpasswd 
# RUN usermod -aG sudo ubt 

  
# # 暴露端口  
# EXPOSE 80  
  
# 设置容器启动时执行的命令  
# CMD ["nginx", "-g", "daemon off;"]

# 设置工作目录
WORKDIR /home/ubt/ros2-acu
